package com.shop.service;

import com.shop.entity.storeOrderList.StoreGetOrderList;
import com.shop.exception.DAOException;
import com.shop.exception.StoreGoodIsNotExitException;
import com.shop.exception.StoreIsNotExitException;

import java.util.List;

//商家处理业务接口
public interface StoreService {
    /**
     * 商家获取全部订单
     * @param sid
     * @param status
     * @param pageNum
     * @param pageSize
     * @return
     * @throws StoreIsNotExitException
     * @throws DAOException
     */
    public List<StoreGetOrderList> getAllOrderList(int sid, String status,int pageNum,int pageSize) throws StoreIsNotExitException, DAOException;

    /**
     * 商家修改订单
     * @param s_id
     * @param od_status
     * @param gd_id
     * @param od_id
     * @throws StoreIsNotExitException
     * @throws StoreGoodIsNotExitException
     * @throws DAOException
     */
    public void storeUpOrder(int s_id,int od_status,int gd_id,int od_id) throws StoreIsNotExitException, StoreGoodIsNotExitException, DAOException;

    /**
     * 商家模糊查询订单
     * @param sid
     * @param status
     * @param pageNum
     * @param pageSize
     * @return
     * @throws StoreIsNotExitException
     */
    public List<StoreGetOrderList> getAllOrderListLike(int sid, String status, int pageNum, int pageSize) throws StoreIsNotExitException;

    /**
     * 商家模糊查询订单
     * @param sid
     * @param fName
     * @param pageNum
     * @param pageSize
     * @return
     * @throws StoreIsNotExitException
     */
    public List<StoreGetOrderList> getAllOrderListLikeFName(int sid,String fName,int pageNum,int pageSize) throws StoreIsNotExitException;

    /**
     * 商家模糊查询订单
     * @param sid
     * @param tName
     * @param pageNum
     * @param pageSize
     * @return
     * @throws StoreIsNotExitException
     */
    public List<StoreGetOrderList> getAllOrderListLikeTName(int sid,String tName,int pageNum,int pageSize) throws StoreIsNotExitException;
}
